package com.yjy.moudle_pair;

import java.util.ArrayList;
import java.util.List;

/**
 * author : yangjinyang
 * create : 2020/12/1
 * description :
 */
public class NewsBean {
    private List<RecordsBean> records;

    public List<RecordsBean> getRecords() {
        if (records == null) {
            return new ArrayList<>();
        }
        return records;
    }

    public void setRecords(List<RecordsBean> records) {
        this.records = records;
    }

    public static class RecordsBean {
        /**
         * "id":85452,
         * "categoryId":0,
         * "title":"斩钢闪贯穿云顶 云顶最具性价比棋子攻略",
         * "cover":"/static/upload/news/2020/0924/16009208868791.jpg",
         * "addTime":null,
         * "gameId":null,
         * "game":"英雄联盟",
         * "type":"news",
         * "url":"http://m.dianjinghu.com/detail?id=85452",
         * "updateTime":null
         */
        private String id;
        private String categoryId;
        private String title;
        private String cover;
        private String addTime;
        private String gameId;
        private String game;
        private String type;
        private String url;
        private String updateTime;

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id == null ? "" : id;
        }

        public String getCategoryId() {
            return categoryId == null ? "" : categoryId;
        }

        public void setCategoryId(String categoryId) {
            this.categoryId = categoryId == null ? "" : categoryId;
        }

        public String getTitle() {
            return title == null ? "" : title;
        }

        public void setTitle(String title) {
            this.title = title == null ? "" : title;
        }

        public String getCover() {
            return cover == null ? "" : "https://m.dianjinghu.com/" + cover;
        }

        public void setCover(String cover) {
            this.cover = cover == null ? "" : cover;
        }

        public String getAddTime() {
            return addTime == null ? "" : addTime;
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime == null ? "" : addTime;
        }

        public String getGameId() {
            return gameId == null ? "" : gameId;
        }

        public void setGameId(String gameId) {
            this.gameId = gameId == null ? "" : gameId;
        }

        public String getGame() {
            return game == null ? "" : game;
        }

        public void setGame(String game) {
            this.game = game == null ? "" : game;
        }

        public String getType() {
            return type == null ? "" : type;
        }

        public void setType(String type) {
            this.type = type == null ? "" : type;
        }

        public String getUrl() {
            return url == null ? "" : url;
        }

        public void setUrl(String url) {
            this.url = url == null ? "" : url;
        }

        public String getUpdateTime() {
            return updateTime == null ? "" : updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime == null ? "" : updateTime;
        }
    }
}
